package com.ee.chat.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ee.chat.common.entity.UserCreditExchangeLog;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.Map;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author Shane
 * @since 2020-10-16
 */
public interface UserCreditExchangeLogMapper extends BaseMapper<UserCreditExchangeLog> {
    IPage<Map<String, Object>> list(Page page, @Param("userId") Integer userId, @Param("status") Integer status,
                                    @Param("beginTime") Date beginTime, @Param("endTime") Date endTime);

    IPage<Map<String, Object>> getCreditExchangeLogs(Page page, @Param("userId") Integer userId);
}